package com.joshua.viewtest.demo.ExpandingView;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.joshua.viewtest.R;

import butterknife.ButterKnife;
import butterknife.OnClick;

public class ExpandingTestAty extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_expanding_test_aty);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.sample, R.id.demo})
    void onButtonClick(View view) {
        switch (view.getId()) {
            case R.id.sample:
                startActivity(new Intent(ExpandingTestAty.this, ExpandingAty.class));
                break;
            case R.id.demo:
                startActivity(new Intent(ExpandingTestAty.this, ExpandingDemoAty.class));
                break;
        }
    }
}
